import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";

// export type UserTagItemLimit = {
//     _id?: string,
//     is_show: number,
//     name: string,
//     grade: string,
//     discount: string,
//     exp: string
// }

export function addUserTagApi(data: object) {
    return httpPost('/userTag/add', data);
}
export function getUserTagApi(data?: object) {
    return httpPost('/userTag/find', data);
}
export function updateUserTagApi(data: object) {
    return httpPut('/userTag/update', data);
}
export function deleteUserTagApi(data: object) {
    return httpDelete('/userTag/remove', data);
}
// 获取一个用户等级数据的详情
export const getUserTagByLabelApi = (data?: object) => {
    return httpGet('/userTag/getByType', data)
}
